#ifndef SERVERAPPLICATION_H
#define SERVERAPPLICATION_H

#include <QApplication>
#include <QtGui>
#include "databaseinterface.h"
#include "networkserver.h"

class ServerApplication : public QApplication
{
    Q_OBJECT
public:
    ServerApplication ( int & argc, char ** argv );
    ~ServerApplication ();

signals:
    void serverCreateFailed(QString err);

public slots:
    void showIPPort(QHostAddress *address, quint16);

private:
    DatabaseInterface *dbInterface;
    NetworkServer *server;
};

#endif // SERVERAPPLICATION_H
